package com.example.mdm4.main

import com.example.lib_base.BaseEntity
import com.example.lib_base.BaseRepository
import com.example.lib_http.HttpType
import com.example.lib_http.NetWorkFactory
import com.example.mdm4.ApiService
import kotlinx.coroutines.flow.Flow

class MainRepository:BaseRepository() {

    //查看设备是否锁屏
    fun selLock():Flow<BaseEntity>{
        return NetWorkFactory.factory(HttpType.NONE).create(ApiService::class.java).selLock()
    }

    //查看白名单
    fun selWhite():Flow<BaseEntity>{
        return NetWorkFactory.factory(HttpType.NONE).create(ApiService::class.java).selWhite()
    }
}